package com.reebake.ideal.permission.service;

import com.reebake.ideal.permission.entity.Menu;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface PermissionAuthService {

    public List<Menu> queryMenuByUserId(String userId, String menuType);

    Map<String, Set<String>> loadMetadata();

    void saveRoleMenu(String roleId, Collection<String> menuIds);

    void saveUserRole(String userId, Collection<String> roleIds);

    List<String> queryRoleCodeByUserId(String userId);
}
